import javax.xml.bind.annotation.*;
import java.io.Serializable;

@XmlAccessorType(XmlAccessType.FIELD)
// XML文件中的根标识
@XmlRootElement(name = "DdhObject")
// 控制JAXB 绑定类中属性和字段的排序
@XmlType(propOrder = {
        "xmlns",
        "airline"
})
public class DdhObject implements Serializable {
    private static final long serialVersionUID = 1L;

    @XmlAttribute(name = "xmlns")
    private String xmlns;

    private Airline airline;

    public DdhObject() {
    }

    public String getXmlns() {
        return xmlns;
    }

    public void setXmlns(String xmlns) {
        this.xmlns = xmlns;
    }

    public Airline getAirline() {
        return airline;
    }

    public void setAirline(Airline airline) {
        this.airline = airline;
    }

    @Override
    public String toString() {
        return "DdhObject{" +
                "xmlns='" + xmlns + '\'' +
                ", airline=" + airline +
                '}';
    }
}
